package com.buka.service;

import com.buka.dao.MovieDao;
import com.buka.entity.Movie;
import com.buka.entity.MovieType;

import java.util.List;

public class MovieService {

    private MovieDao movieDao = new MovieDao();

    public List<MovieType> typeList(){
        return movieDao.selectAllType();
    }


    public List<Movie> list() {
        //操作数据库的方法，都封装在DAO中
        return movieDao.list();
    }
}
